import axios from "axios";
const service = axios.create({
  baseURL: '',
  timeout: 5000 
})
service.interceptors.request.use(
  (request) => {
		//var token = base.userInfo.token;
		//request.headers["x-token"] = token;
		return request;    
  },
  (error) => {
		return Promise.resolve(error);
  }  
);
service.interceptors.response.use(
	(response) => {
		return response.data	
	},
  (error) => {
		return Promise.resolve(error);
  }	
);
export default service;